package cn.chen.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //用户类型
    @TableField(value = "user_type")
    private Integer userType;

    //用户名
    @TableField(value = "username")
    private String username;

    //密码
    @TableField(value = "password")
    private String password;

    //信誉等级
    @TableField(value = "grade")
    private Integer grade;

    //头像
    @TableField(value = "image")
    private String image;

    //用户状态
    @TableField(value = "status")
    private Integer status;


}